define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function(){
		this.callParent();
		this.tzId = 0;
	};

    //接受参数
	Model.prototype.tongzhiRecerve = function(event){
		this.tzId = this.params.tzId;
		var tzData = this.comp("tongzhiBData").find(["id"], [this.tzId]);
		this.comp("tongzhiData").newData({
			"defaultValues" : [ {
				"title":tzData[0].val("title"),
				"content":tzData[0].val("content"),
				"publisher":tzData[0].val("publisher"),
				"publishDate":tzData[0].val("publishDate")
			} ]
		})
		
				
	};
	

	
	

	Model.prototype.backToList = function(event){
		justep.Shell.closePage();
	};
	

	return Model;
});